/**
 * 
 */
package com.huawei.struts.service;

import com.huawei.struts.exception.SystemException;
import com.huawei.struts.util.PageBean;
import com.st.model.LjwUserT;
import com.st.model.UserT;

/**
 * @author huganpu
 *
 */
public interface IUserService {
	/**
	 * 通过ID得到用户的详细信息
	 * @param user
	 * @return
	 * @throws SystemException
	 */
	public LjwUserT getUserInfoByid(Integer id) throws SystemException;
	
	/**
	 * 增加用户
	 * @param user
	 * @return
	 * @throws SystemException
	 */
	public void addUser(LjwUserT user) throws SystemException;
	/**
	 * 删除用户
	 * @param user
	 * @return
	 * @throws SystemException
	 */
	
	public void delUser(LjwUserT user) throws SystemException;
	
	/**
	 * 修改用户
	 * @param user
	 * @return
	 * @throws SystemException
	 */
	public void modifyUser(LjwUserT user) throws SystemException;
	
	/**
	 * 得到用户的列表
	 * @param user
	 * @param pageBean
	 * @return
	 */
	public PageBean getUserList(LjwUserT user,PageBean pageBean);
	
	/**
	 * 登录用户
	 * @param user
	 * @return
	 * @throws SystemException
	 */
	public boolean login(LjwUserT user) throws SystemException;
	
	
	public LjwUserT getUserByName(String name) throws SystemException;
	
	public int checkPermission(final int role,final String module,final String opertor);
	
	

}
